import { CanDeactivate } from '@angular/router';
import { ProductComponent } from '../product/product.component';
export class UnsavedGuard implements CanDeactivate<ProductComponent>{
    canDeactivate(component:ProductComponent){
        return window.confirm('是否已经保存了相关填写信息，您确认离开当前页面？');
    }
}